﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template_BHHY_1.Master" AutoEventWireup="true" CodeBehind="AddDotBH.aspx.cs" Inherits="WebBHXH.AddDotBH" %>
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="margin-left:200px;">
    <table style="width:100%;">
    <tr>
            <td  style="width: 173px">
                <asp:Label ID="Label1" runat="server" 
                    Text="Mã Đợt BH"></asp:Label>
            </td>
            <td  style="width: 294px">
                <asp:TextBox ID="txtId" runat="server" ReadOnly="True" Width="272px"></asp:TextBox>
            </td>
            <td>
                    &nbsp;</td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Mã đơn vị bảo hiểm</td>
            <td  style="width: 294px">
                <asp:DropDownList ID="DropDownList1" runat="server" Width="240px">
                </asp:DropDownList>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="DropDownList1" ErrorMessage="Hãy lựa chọn đơn vị BH" 
                        ForeColor="Red" InitialValue="-- Chọn Tên Đơn Vị --"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Tỉnh</td>
            <td  style="width: 294px">
                <asp:DropDownList ID="DropDownList2" runat="server" Width="240px" 
                    AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="DropDownList2" ErrorMessage="Hãy lựa chọn Tỉnh thành" 
                        ForeColor="Red" InitialValue="-- Chọn Tên Tỉnh --"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Huyện</td>
            <td  style="width: 294px">
                <asp:DropDownList ID="DropDownList3" runat="server" Width="240px">
                </asp:DropDownList>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="DropDownList3" ErrorMessage="Hãy lựa chọn Huyện" 
                        ForeColor="Red" InitialValue="-- Chọn Tên Huyện --"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px; height: 39px;">
                Đối tượng</td>
            <td  style="width: 294px; height: 39px;">
                <asp:TextBox ID="txtObject" runat="server" Width="276px" TextMode="MultiLine"></asp:TextBox>
            </td>
            <td style="height: 39px">
                    </td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Ngày lập</td>
            <td  style="width: 294px">
                <eo:DatePicker ID="dpkDate" runat="server" ControlSkinID="None" 
        DayCellHeight="15" DayCellWidth="31" DayHeaderFormat="Short" DisabledDates="" 
        OtherMonthDayVisible="True" SelectedDates="" TitleFormat="MMMM, yyyy" 
        TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" 
        TitleRightArrowImageUrl="DefaultSubMenuIcon" VisibleDate="2013-02-01">
        <CalendarStyle CssText="background-color:white;border-bottom-color:Silver;border-bottom-style:solid;border-bottom-width:1px;border-left-color:Silver;border-left-style:solid;border-left-width:1px;border-right-color:Silver;border-right-style:solid;border-right-width:1px;border-top-color:Silver;border-top-style:solid;border-top-width:1px;color:#2C0B1E;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
        <TitleStyle CssText="font-family:Verdana;font-size:8.75pt;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
        <TitleArrowStyle CssText="cursor: hand" />
        <MonthStyle CssText="cursor:hand;margin-bottom:0px;margin-left:4px;margin-right:4px;margin-top:0px;" />
        <DayHeaderStyle CssText="font-family:Verdana;font-size:8pt;border-bottom: #f5f5f5 1px solid" />
        <DayStyle CssText="font-family:Verdana;font-size:8pt;" />
        <DayHoverStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040402');color:#1c7cdc;" />
        <TodayStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040401');color:#1176db;" />
        <SelectedDayStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040403');color:Brown;" />
        <DisabledDayStyle CssText="font-family:Verdana;font-size:8pt;color: gray" />
        <FooterTemplate>
            <table border="0" cellPadding="0" cellspacing="5" 
                style="font-size: 11px; font-family: Verdana">
                <tr>
                    <td width="30">
                    </td>
                    <td valign="center">
                        <img src="{img:00040401}"></img></td>
                    <td valign="center">
                        Today: {var:today:MM/dd/yyyy}</td>
                </tr>
            </table>
        </FooterTemplate>
    </eo:DatePicker>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="dpkDate" ErrorMessage="Ngày Lập Không Được Để Trống" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Loại bảo hiểm</td>
            <td  style="width: 294px">
                <asp:DropDownList ID="DropDownList5" runat="server" Width="240px">
                </asp:DropDownList>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="DropDownList1" ErrorMessage="Hãy lựa chọn loại hình BH" 
                        ForeColor="Red" InitialValue="-- Chọn Tên Đơn Vị --"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Mức bảo hiểm</td>
            <td  style="width: 294px">
                <asp:DropDownList ID="DropDownList6" runat="server" Width="240px">
                </asp:DropDownList>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="DropDownList1" ErrorMessage="Hãy lựa chọn mục BH" 
                        ForeColor="Red" InitialValue="-- Chọn Tên Đơn Vị --"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px">
                Số tiền một năm</td>
            <td  style="width: 294px">
                <asp:TextBox ID="txtTien1Nam" runat="server" Width="273px"></asp:TextBox>
            </td>
            <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTien1Nam" ErrorMessage="Số Tiền 1 Năm Không Được Để Trống" 
                        ForeColor="#FF3300"></asp:RequiredFieldValidator>
                    <br />
                    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                        ControlToValidate="txtTien1Nam" 
                        ErrorMessage="Số tiền phải là số nguyên &gt;= 10.000 và &lt;=100.000.000" 
                        ForeColor="Red" MaximumValue="1000000000" MinimumValue="10000" Type="Integer"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td  style="width: 173px; height: 55px;">
                    </td>
            <td  style="width: 294px; height: 55px;">
                <asp:Button ID="btnDangKy" runat="server" Text="Đăng ký" Width="90px" 
                    onclick="btnDangKy_Click" />
            </td>
            <td style="height: 55px">
                    </td>
        </tr>
    </table>
</div>
</asp:Content>
